// ---------------------------------------------------------------------------

#ifndef ServiceResultH
#define ServiceResultH
#include <Classes.hpp>
#include <XMLDoc.hpp>
#include <msxmldom.hpp>
#include <map>
#include "SafeString.h"
#include "Encddecd.hpp"

// ---------------------------------------------------------------------------
using namespace std;

typedef std::map<String, String>HashTable;

typedef std::pair<String, String>item;

class TServiceResult : public TSafeString {

private:

	Classes::TComponent* AOwner;

	map<String, String>strmap;

	map<String, HashTable>hashmap;

	map<String, String>tablemap;

public:
	String Xml;

	String ServiceName;

	String UserKey;

	TDateTime ServiceDateTime;

	bool Succeed;

	String Message;

	__fastcall TServiceResult(Classes::TComponent* AOwner);

	String __fastcall GetStringData(String key);

	HashTable __fastcall GetHashTable(String key);

	String __fastcall GetTableData(String key);

	void __fastcall BuildServiceData(String xml);

	__fastcall ~TServiceResult();

};

#endif
